home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / patchlevel.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-03  |  1.2 KB  |  40 lines

  1. /* Newfangled version identification scheme.
  2.  
  3.    This scheme was added in Python 1.5.2b2; before that time, only PATCHLEVEL
  4.    was available.  To test for presence of the scheme, test for
  5.    defined(PY_MAJOR_VERSION).
  6.  
  7.    When the major or minor version changes, the VERSION variable in
  8.    configure.in must also be changed.
  9.  
  10.    There is also (independent) API version information in modsupport.h.
  11. */
  12.  
  13. /* Values for PY_RELEASE_LEVEL */
  14. #define PY_RELEASE_LEVEL_ALPHA    0xA
  15. #define PY_RELEASE_LEVEL_BETA    0xB
  16. #define PY_RELEASE_LEVEL_GAMMA    0xC
  17. #define PY_RELEASE_LEVEL_FINAL    0xF    /* Serial should be 0 here */
  18.                     /* Higher for patch releases */
  19.  
  20. /* Version parsed out into numeric values */
  21. #define PY_MAJOR_VERSION    1
  22. #define PY_MINOR_VERSION    6
  23. #define PY_MICRO_VERSION    0
  24. #define PY_RELEASE_LEVEL    PY_RELEASE_LEVEL_FINAL
  25. #define PY_RELEASE_SERIAL    0
  26.  
  27. /* Version as a string */
  28. #define PY_VERSION        "1.6"
  29.  
  30. /* Historic */
  31. #define PATCHLEVEL        "1.6"
  32.  
  33. /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
  34.    Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
  35. #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
  36.             (PY_MINOR_VERSION << 16) | \
  37.             (PY_MICRO_VERSION <<  8) | \
  38.             (PY_RELEASE_LEVEL <<  4) | \
  39.             (PY_RELEASE_SERIAL << 0))
  40.